package com.powersystem.demo.mapper;

import com.powersystem.demo.entity.PsRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author linrongji
 * @since 2019-11-14
 */
public interface PsRoleMapper extends BaseMapper<PsRole> {
    @Select("SELECT * FROM PS_ROLE  WHERE ROLENAME like '%${roleName}%' AND ISSTART = ${isstart}")
    public PsRole fetchByRoleNameAndIsstart(@Param("roleName")String roleName,@Param("isstart")int isstart);
    @Select("SELECT * FROM PS_ROLE  WHERE ROLEID = ${roleId} OR  ROLEName = ${roleName}")
    public PsRole fetchByRoleIdAndRoelName(@Param("roleId")String roleId,@Param("roleName")String roleName);





}
